
import { MongooseFactory } from "../kalend";
import { Schema } from "mongoose";

/** 用户酒币记录表 */
const schema = MongooseFactory.Schema({
    createuser:{
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifyuser:{
        type: Schema.Types.ObjectId,
        ref: "platform_user"
    },
    modifytime:{
        type: Date
    },
    conins:{
        type: Number
    },
    customerorderid:{
        type: Schema.Types.ObjectId,
        ref: "customer_order"
    },
    merchantid:{
        type: Schema.Types.ObjectId,
        ref: "merchant"
    },
});



export const merchant_coinrecordModel = MongooseFactory.Model("customer_coinrecords", schema);